package cn.aloxc.tianya.reader;

import android.app.NotificationManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class BroadcastReceiverDelete extends BroadcastReceiver{
	Context context;
	@Override
	public void onReceive(Context context, Intent intent) {
		this.context = context;
		deleteNotification();
	}
	private void deleteNotification(){
		NotificationManager manage = (NotificationManager)context.getSystemService(android.content.Context.NOTIFICATION_SERVICE);
		manage.cancel(BroadcastReceiverCreate.NOTIFICATION_ID);
	}
}
